{extend name="public/base"}
{block name="content"}
<div class="pst_bg">
    <div class="pst">
        当前的位置：{$location}&gt;{$desc}
    </div>
</div>
<div class="scd clearfix" style="margin-bottom: 100px;">
    <div class="scd_l">
        <div class="s_name">
            <img src="{$img}" width="138" height="48" alt="">
            <i>&nbsp;</i>
        </div>
        <ul class="s_nav">
            {if $cate_id == 0}
            <li class="now"><a href="/baibu/index/Product">全部分类</a></li>
            {else}
            <li><a href="/baibu/index/Product">全部分类</a></li>
            {/if}
            {volist name='cate' id='vo'}
            <li {if $cate_id==$vo.cate_id}class="now"{/if}>
                <a href="/baibu/index/Product?cate_id={$vo.cate_id}">
                    {$vo.cate_name}
                </a>
            </li>
            {/volist}
        </ul>
    </div>
    <div class="scd_r">
        <div class="r_name"><span>{$desc}</span></div>
        <div class="pro clearfix">
            {if count($product)!=0}
            {volist name='product' id='vo'}
            <dl class="clearfix">
                <dt>
                    <a href="/baibu/index/Product/detail?product_id={$vo.product_id}">
                        <img src="{$vo.product_img}" alt="">
                    </a>
                </dt>
                <dd>
                    <div class="title">
                        <a href="/baibu/index/Product/detail?product_id={$vo.product_id}">{$vo.product_name}</a>
                    </div>
                    <div class="des">{$vo.product_remark}</div>
                    <a href="/baibu/index/Product/detail?product_id={$vo.product_id}" class="more">+more</a>
                </dd>
            </dl>
            {/volist}
            {else}
            暂无产品...
            {/if}
            <div class="space_hx">&nbsp;</div>
            <div class="pages">
                {$page}
            </div>
        </div>
    </div>
</div>
<input class="cate_id" type="hidden" value="{$cate_id}">
{/block}
{block name='js'}
<script type="text/javascript">
    $(function () {
        var mark = '{$mark}';
        var menu = {$menu};
        var info = getMneu(mark, menu);
        $('.navbar-nav').append(info);
        var cate_id = $('.cate_id').val();
        if(cate_id != 0){
            $('.pagination a').each(function (i,item) {
                if($(this).prop('class') != 'cur'){
                    var temp = $(this).prop('href')+'&cate_id='+cate_id;
                    $(this).prop('href',temp);
                }
            });
        }
    });
</script>
{/block}